import numpy as np

def create_dataset(dataset, look_back=1):
    X, Y = [], []
    for i in range(len(dataset) - look_back):
        X.append(dataset[i:(i + look_back)])
        Y.append(dataset[i + look_back])
    return np.array(X), np.array(Y)

def data_up(data,index,k):
    for i in range(len(data)):
        data[i][index] = data[i][index]*k


def data_down(data,index,k):
    for i in range(len(data)):
        data[i][index] = data[i][index]/k